.class Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;
.super Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
.source "MergeDataAdapter.java"

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Lcom/esfile/screen/recorder/videos/merge/tools/b;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "c"
.end annotation


# instance fields
.field private a:Landroid/widget/ImageView;

.field private b:Landroid/view/View;

.field private c:Landroid/view/View;

.field private d:Landroid/widget/ImageView;

.field private e:Landroid/widget/ImageView;

.field private f:Landroid/widget/TextView;

.field private g:Lcom/esfile/screen/recorder/videos/merge/b0;

.field final synthetic h:Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;


# direct methods
.method constructor <init>(Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;Landroid/view/View;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->h:Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;

    .line 2
    invoke-direct {p0, p2}, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;-><init>(Landroid/view/View;)V

    .line 3
    sget p1, Les/x4;->merge_media_thumb:I

    invoke-virtual {p2, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->a:Landroid/widget/ImageView;

    .line 4
    invoke-virtual {p1, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 5
    sget p1, Les/x4;->merge_media_thumb_selected_view:I

    invoke-virtual {p2, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->b:Landroid/view/View;

    .line 6
    sget p1, Les/x4;->merge_media_thumb_draggable_bg:I

    invoke-virtual {p2, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->c:Landroid/view/View;

    .line 7
    sget p1, Les/x4;->merge_media_icon:I

    invoke-virtual {p2, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->d:Landroid/widget/ImageView;

    .line 8
    sget p1, Les/x4;->merge_media_delete:I

    invoke-virtual {p2, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->e:Landroid/widget/ImageView;

    .line 9
    invoke-virtual {p1, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 10
    sget p1, Les/x4;->merge_media_duration:I

    invoke-virtual {p2, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->f:Landroid/widget/TextView;

    return-void
.end method

.method private d()V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->h:Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;

    invoke-static {v0}, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;->c(Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;)Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$b;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->h:Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;

    invoke-static {v0}, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;->c(Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;)Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$b;

    move-result-object v0

    invoke-interface {v0}, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$b;->a()V

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->h:Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;

    invoke-static {v0}, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;->a(Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;)Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    sget v1, Les/y4;->durec_emoji_dialog_layout:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 4
    sget v1, Les/x4;->emoji_icon:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    .line 5
    sget v3, Les/w4;->durec_delete_dialog_icon:I

    invoke-virtual {v1, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 6
    sget v1, Les/x4;->emoji_title:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    const/16 v3, 0x8

    invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V

    .line 7
    sget v1, Les/x4;->emoji_message:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 8
    sget v3, Les/z4;->durec_dialog_delete_title:I

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setText(I)V

    .line 9
    new-instance v1, Lcom/esfile/screen/recorder/ui/a$e;

    iget-object v3, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->h:Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;

    invoke-static {v3}, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;->a(Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;)Landroid/content/Context;

    move-result-object v3

    invoke-direct {v1, v3}, Lcom/esfile/screen/recorder/ui/a$e;-><init>(Landroid/content/Context;)V

    .line 10
    invoke-virtual {v1, v2}, Lcom/esfile/screen/recorder/ui/a$e;->a(Ljava/lang/String;)Lcom/esfile/screen/recorder/ui/a$e;

    .line 11
    invoke-virtual {v1, v0}, Lcom/esfile/screen/recorder/ui/a$e;->a(Landroid/view/View;)Lcom/esfile/screen/recorder/ui/a$e;

    const/4 v0, 0x1

    .line 12
    invoke-virtual {v1, v0}, Lcom/esfile/screen/recorder/ui/a$e;->a(Z)Lcom/esfile/screen/recorder/ui/a$e;

    sget v0, Les/z4;->durec_common_delete:I

    new-instance v3, Lcom/esfile/screen/recorder/videos/merge/b;

    invoke-direct {v3, p0}, Lcom/esfile/screen/recorder/videos/merge/b;-><init>(Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;)V

    .line 13
    invoke-virtual {v1, v0, v3}, Lcom/esfile/screen/recorder/ui/a$e;->b(ILandroid/content/DialogInterface$OnClickListener;)Lcom/esfile/screen/recorder/ui/a$e;

    sget v0, Les/z4;->durec_common_cancel:I

    .line 14
    invoke-virtual {v1, v0, v2}, Lcom/esfile/screen/recorder/ui/a$e;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/esfile/screen/recorder/ui/a$e;

    .line 15
    invoke-virtual {v1}, Lcom/esfile/screen/recorder/ui/a$e;->b()Lcom/esfile/screen/recorder/ui/a;

    .line 16
    invoke-static {}, Lcom/esfile/screen/recorder/videos/merge/c0;->e()V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 2

    .line 13
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->c:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    return-void
.end method

.method public synthetic a(Landroid/content/DialogInterface;I)V
    .locals 1

    .line 14
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    .line 15
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->h:Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;

    invoke-static {p1}, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;->c(Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;)Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$b;

    move-result-object p1

    if-eqz p1, :cond_1

    .line 16
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->h:Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;

    invoke-static {p1}, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;->c(Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;)Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$b;

    move-result-object p1

    iget-object p2, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->g:Lcom/esfile/screen/recorder/videos/merge/b0;

    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->h:Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;

    invoke-static {v0}, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;->b(Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;)Lcom/esfile/screen/recorder/videos/merge/b0;

    move-result-object v0

    if-ne p2, v0, :cond_0

    const/4 p2, 0x1

    goto :goto_0

    :cond_0
    const/4 p2, 0x0

    :goto_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->g:Lcom/esfile/screen/recorder/videos/merge/b0;

    invoke-interface {p1, p2, v0}, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$b;->a(ZLcom/esfile/screen/recorder/videos/merge/b0;)V

    .line 17
    :cond_1
    invoke-static {}, Lcom/esfile/screen/recorder/videos/merge/c0;->f()V

    return-void
.end method

.method a(Lcom/esfile/screen/recorder/videos/merge/b0;)V
    .locals 5

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->g:Lcom/esfile/screen/recorder/videos/merge/b0;

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->h:Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;

    invoke-static {v0}, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;->a(Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;)Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/esfile/recorder/a;->a(Landroid/content/Context;)Lcom/esfile/recorder/d;

    move-result-object v0

    .line 3
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/videos/merge/b0;->d()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/esfile/recorder/d;->a(Ljava/lang/String;)Lcom/esfile/recorder/c;

    move-result-object v0

    .line 4
    invoke-virtual {v0}, Lcom/esfile/recorder/c;->c()Lcom/esfile/recorder/c;

    move-result-object v0

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->a:Landroid/widget/ImageView;

    .line 5
    invoke-virtual {v0, v1}, Lcom/bumptech/glide/g;->a(Landroid/widget/ImageView;)Les/w3;

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->h:Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;

    invoke-static {v0}, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;->b(Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;)Lcom/esfile/screen/recorder/videos/merge/b0;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->h:Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;

    invoke-static {v0}, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;->b(Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;)Lcom/esfile/screen/recorder/videos/merge/b0;

    move-result-object v0

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/merge/b0;->g()J

    move-result-wide v0

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/videos/merge/b0;->g()J

    move-result-wide v2

    cmp-long v4, v0, v2

    if-nez v4, :cond_0

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->b:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0

    .line 8
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->b:Landroid/view/View;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 9
    :goto_0
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/videos/merge/b0;->j()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 10
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->d:Landroid/widget/ImageView;

    sget v1, Les/w4;->durec_video_white_icon:I

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_1

    .line 11
    :cond_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->d:Landroid/widget/ImageView;

    sget v1, Les/w4;->durec_image_white_icon:I

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 12
    :goto_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->f:Landroid/widget/TextView;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/videos/merge/b0;->a()J

    move-result-wide v1

    invoke-static {v1, v2}, Lcom/esfile/screen/recorder/utils/t;->a(J)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public c()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->c:Landroid/view/View;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->a:Landroid/widget/ImageView;

    if-ne p1, v0, :cond_1

    .line 2
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->h:Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;

    invoke-static {p1}, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;->c(Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;)Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$b;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 3
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->h:Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;

    invoke-static {p1}, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;->c(Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;)Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$b;

    move-result-object p1

    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->g:Lcom/esfile/screen/recorder/videos/merge/b0;

    invoke-interface {p1, v0}, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$b;->b(Lcom/esfile/screen/recorder/videos/merge/b0;)V

    .line 4
    :cond_0
    invoke-static {}, Lcom/esfile/screen/recorder/videos/merge/c0;->h()V

    goto :goto_0

    .line 5
    :cond_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->e:Landroid/widget/ImageView;

    if-ne p1, v0, :cond_2

    .line 6
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$c;->d()V

    :cond_2
    :goto_0
    return-void
.end method
